package com.example.java2e.Service;

import com.example.java2e.Entity.Driver;
import com.example.java2e.Entity.Manager;
import com.example.java2e.Entity.User;

import java.util.ArrayList;
import java.util.List;

// 后端服务逻辑
public interface UserService
{
    public User selectUserByTel(String tel);
    public User selectUserById(String id);
    public void deleteUserById(String id);
    public void registerNewUser(User new_user);

    public Manager selectManagerByTel(String tel);
    public Manager selectManagerById(String id);
    public void deleteManagerById(String id);
    public void registerNewManager(Manager new_manager);

    public Driver selectDriverById(String id);
    public void deleteDriverById(String id);
    public ArrayList<Driver> selectDriverList();
    public void registerNewDriver(Driver new_driver);
}
